package com.ruoyi.configuration.mapper;

import java.util.List;
import com.ruoyi.configuration.domain.MgPreStoredRewardsConf;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 预存奖励设置Mapper接口
 * 
 * @author ruoyi
 * @date 2024-01-16
 */
public interface MgPreStoredRewardsConfMapper 
{
    /**
     * 查询预存奖励设置
     * 
     * @param id 预存奖励设置主键
     * @return 预存奖励设置
     */
    public MgPreStoredRewardsConf selectMgPreStoredRewardsConfById(String id);

    /**
     * 查询预存奖励设置列表
     * 
     * @param mgPreStoredRewardsConf 预存奖励设置
     * @return 预存奖励设置集合
     */
    public List<MgPreStoredRewardsConf> selectMgPreStoredRewardsConfList(MgPreStoredRewardsConf mgPreStoredRewardsConf);

  
    
    /**
     * 新增预存奖励设置
     * 
     * @param mgPreStoredRewardsConf 预存奖励设置
     * @return 结果
     */
    public int insertMgPreStoredRewardsConf(MgPreStoredRewardsConf mgPreStoredRewardsConf);

    /**
     * 修改预存奖励设置
     * 
     * @param mgPreStoredRewardsConf 预存奖励设置
     * @return 结果
     */
    public int updateMgPreStoredRewardsConf(MgPreStoredRewardsConf mgPreStoredRewardsConf);

    /**
     * 删除预存奖励设置
     * 
     * @param id 预存奖励设置主键
     * @return 结果
     */
    public int deleteMgPreStoredRewardsConfById(String id);

    /**
     * 批量删除预存奖励设置
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMgPreStoredRewardsConfByIds(String[] ids);
    @Update("update mg_pre_stored_rewards_conf set remarks =#{remarks}")
    void updateRemarks(@Param("remarks") String remarks);
}
